﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLNhaThuoc.BL;
using QLNhaThuoc.DTO;

namespace QLNhaThuoc.MyClass
{
    class CTPhieuNhapHelper:CTPhieuHelper
    {
        protected override void CapNhatSoLuongThuoc(string maThuoc, int soLuong)
        {
            ThuocControl thuocCtrl = new ThuocControl();
            Thuoc t = thuocCtrl.LayThuocTheoMa(maThuoc);
            t.Restock(soLuong);
            thuocCtrl.CapNhatThuoc(t);
        }
    }
}
